<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>服务发布</title>
	<link href="{$smarty.const.HOME_CSS_URL}/CSS.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="{$smarty.const.HOME_CSS_URL}/style/weui.min.css"/>      
	<script src="{$smarty.const.HOME_JS_URL}/jquery.js"></script>
	<script src="{$smarty.const.HOME_JS_URL}/js.js" type="text/javascript"></script>
    <script src="{$smarty.const.HOME_JS_URL}/lrz/dist/lrz.bundle.js"></script>      
</head>
<body class="body_box">

<div id="bgback" onClick="offrelease()"></div>
<!--信息分类  -->
<div class="publish_serve_box">
	<div class="msg_sort_box">
		<h1>信息类别</h1>
		<div class="msg_sort" id="msgsort">
			<li class="sort1" onClick="category(1)" id="sort1">智造中心</li>
			<li class="sort1"  onClick="category(2)" id="sort2">产品设计</li>
			<li class="sort1"  onClick="category(3)" id="sort3">技术研发</li>
			<li class="sort1" style="margin-right:0"  onClick="category(4)" id="sort4">检测认证</li>
			<li class="sort1"  onClick="category(5)" id="sort5">产品中试</li>
			<li class="sort1"  onClick="category(6)" id="sort6">推广营销</li>
			<li class="sort1"  onClick="category(7)" id="sort7">协同服务</li>
			<li class="sort1" style="margin-right:0"  onClick="category(8)" id="sort8">其他</li>
			<div class="clearfix"></div>
		</div>
	</div>
	<div class="write_msg_box">
		<form action="" method="post" enctype="multipart/form-data">
			<input type="hidden" id="goods_id" value="{$info.id}|default:'0'" />
			
			<div class="msg_title">
				<h1>标题</h1>
				<input type="text" id="title" name="title"   placeholder=""  onClick="check(this.id)" onChange="check(this.id)" value="{$info.goods_title}"  />
			</div>
	         <div class="main_body">
				<h1>正文</h1>
			   <div class="weui_cells weui_cells_form">
        <div class="">
            <div class="weui_cell_primary num_position_box">
                <textarea class="weui_textarea " placeholder="" rows="3" id="memo"  onClick="check(this.id)" onChange="check(this.id)">{$info.goods_intro}</textarea>
                <div class="weui_textarea_counter num_position"><span>0</span>/200</div>
            </div>
        </div>
    </div>
    <div class="weui_toptips weui_warn js_tooltips">格式不对</div>
		 </div >
		 <div class="msg_price">
		 	<h1>价格</h1>
			<input type="number" id="money" placeholder="" onClick="check(this.id)" onChange="check(this.id)" value="{$info.price}"/>   
		 </div>
		 <div class="msg_tel">
		 	<h1>联系方式</h1>
			<div class="weui_cells">
				<div class="weui_cell weui_cell_select">
            		<div class="weui_cell_primary">
               	    	<input class="weui_input" type="number" pattern="[0-9]*" placeholder="" id="tel" onClick="check(this.id)" onChange="check(this.id)" value="{$info.tel}"/>
                    </div>
       	 		</div>
   			 </div>  
		 </div>
		 <div class="msg_addr">
		 	<h1>联系地址</h1>
			<input type="text" id="address" name="address" onClick="check(this.id)" onChange="check(this.id)" value="{$info.addr}">
		 </div>
		 <div class="msg_linkman">
                <h1>联系人</h1>
                <input type="text" id="linkman" name="linkman"  onChange="check(this.id)"
                       value="{$info.addr|default:''}"/>
            </div>

            <div class="msg_vendor_type">
            
                <h1>商户类型</h1>               
                <ul id="msg_vendor_type_ul">
                    <li class="vendor1 vendor1_current" id="vendor_type1" onClick="vendor(1)">公司</li>
                    <li class="vendor1" id="vendor_type2" onClick="vendor(2)">团体</li>
                    <li class="vendor1" style="margin-right:0" id="vendor_type3" onClick="vendor(3)">个人</li>       
                </ul>
            </div>
            <input type="hidden" id="vendor" value="{$info.vendor_type}" />

            <div class="msg_vendor_name">
                <h1>公司名称</h1>
                <input type="text" id="vendor_name" name="vendor_name" value="{$info.vendor_name|default:$name}" onClick="check(this.id)" onChange="check(this.id)"
                       value="{$info.addr|default:''}"/>
            </div>
		 <div class="msg_photo">
            <input type="hidden" id="goods_photo_input" value="{$info.goods_photo}"/>
            <input type="hidden" id="goods_photo1_input"
                   value="{$info.goods_photo1}"/>
            <input type="hidden" id="goods_photo2_input"
                   value="{$info.goods_photo2}"/>
		 	<h1>添加图片</h1>
			<div style="width: 44px; height: 44px; float: left; margin-right: 10%; position: relative">
                    <img id="goods_photo_show" src="{$info.goods_photo|default:'/zgc/Public/images/uploading.png'}" width="100%" height="100%" alt="">
                    <input id="goods_photo" type="file" accept="image/*"
                           style="opacity: 0; position: absolute; left: 0; width: 100%; height: 100%; border: 1px solid red;"/>
                </div>

                <div id="goods_photo1_bar"
                     style="width: 44px; height: 44px; float: left; margin-right: 10%; position: relative; {if $info.goods_photo1==null}display:none{/if}">
                    <img id="goods_photo_show1" src="{$info.goods_photo1|default:'/zgc/Public/images/uploading.png'}" width="100%" height="100%"
                         alt="">
                    <input id="goods_photo1" type="file" accept="image/*"
                           style="opacity: 0; position: absolute; left: 0; width: 100%; height: 100%; border: 1px solid red;"/>
                </div>

                <div id="goods_photo2_bar"
                     style="width: 44px; height: 44px; float: left; margin-right: 10%; position: relative; {if $info.goods_photo2 == null}display:none{/if}">
                    <img id="goods_photo_show2" src="{$info.goods_photo2|default:'/zgc/Public/images/uploading.png'}" width="100%" height="100%"
                         alt="">
                    <input id="goods_photo2" type="file" accept="image/*"
                           style="opacity: 0; position: absolute; left: 0; width: 100%; height: 100%; border: 1px solid red;"/>
                </div>
		</div>	
			
		</form>
	</div>

	<div class="publish_submit" id="publish" onClick="release1()">保存</div>
</div>

	<div class="popup_btn_box" id="popup_btn_box1">
		<div class="popup_content">是否保存</div>
		<div class="popup_content_ok">
			<span id="OK" onClick="submitOK12()">确定</span>
			<span id="NO" onClick="popup_no({$info.id})">取消</span>
		</div>
	</div>

</body>
</html>
<script type="text/javascript">

	var ven = $('#vendor').val();
	if(ven == '公司')vendor(1);
	if(ven == '团体')vendor(2);
	if(ven == '个人')vendor(3);
	category({$info.goods_sort});
</script>


